import React, { Component,createRef } from 'react';

import Biaogejia from './tongjizujia/biaogejia';
import Bingyu from './tongjizujia/bingyu2';
import Tablea from './tongjizujia/tablea';


class Tongji extends Component {
  state={
    arrs:{}
  }
  refa = createRef()
    render() {
        return (
            <div>
                <div className='zongtua'>
                  {/* 饼图 */}
              <Bingyu></Bingyu>
              {/* 表格添加 */}
              <Biaogejia fn={this.fn}></Biaogejia>
              </div>
              {/* 表格 */}
              <div className='kbiaoge'>
                <Tablea arrs={this.state.arrs}></Tablea>
              </div>
            </div>
        );
    }
    fn= (m)=>{
      console.log(m)
    this.setState({
      arrs:m
    })
    }
}

export default Tongji;
